#!/usr/bin/env bash
cd product/
branch=$1
fileName=$branch'oms.jar'
echo $branch
echo $fileName
git checkout $branch -f
git pull
cp -f ../build/libs/oms.jar ./$fileName
git add .
git commit -m '自动提交:'$branch'分支'
git push
echo '推送成功'